package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SafetyExaminationExaminationpaperMapper;
import com.ruoyi.system.domain.SafetyExaminationExaminationpaper;
import com.ruoyi.system.service.ISafetyExaminationExaminationpaperService;

/**
 * 考试试卷Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-07
 */
@Service
public class SafetyExaminationExaminationpaperServiceImpl implements ISafetyExaminationExaminationpaperService 
{
    @Autowired
    private SafetyExaminationExaminationpaperMapper safetyExaminationExaminationpaperMapper;

    /**
     * 查询考试试卷
     * 
     * @param id 考试试卷ID
     * @return 考试试卷
     */
    @Override
    public SafetyExaminationExaminationpaper selectSafetyExaminationExaminationpaperById(Long id)
    {
        return safetyExaminationExaminationpaperMapper.selectSafetyExaminationExaminationpaperById(id);
    }

    /**
     * 查询考试试卷列表
     * 
     * @param safetyExaminationExaminationpaper 考试试卷
     * @return 考试试卷
     */
    @Override
    public List<SafetyExaminationExaminationpaper> selectSafetyExaminationExaminationpaperList(SafetyExaminationExaminationpaper safetyExaminationExaminationpaper)
    {
        return safetyExaminationExaminationpaperMapper.selectSafetyExaminationExaminationpaperList(safetyExaminationExaminationpaper);
    }

    /**
     * 新增考试试卷
     * 
     * @param safetyExaminationExaminationpaper 考试试卷
     * @return 结果
     */
    @Override
    public int insertSafetyExaminationExaminationpaper(SafetyExaminationExaminationpaper safetyExaminationExaminationpaper)
    {
        return safetyExaminationExaminationpaperMapper.insertSafetyExaminationExaminationpaper(safetyExaminationExaminationpaper);
    }

    /**
     * 修改考试试卷
     * 
     * @param safetyExaminationExaminationpaper 考试试卷
     * @return 结果
     */
    @Override
    public int updateSafetyExaminationExaminationpaper(SafetyExaminationExaminationpaper safetyExaminationExaminationpaper)
    {
        return safetyExaminationExaminationpaperMapper.updateSafetyExaminationExaminationpaper(safetyExaminationExaminationpaper);
    }

    /**
     * 批量删除考试试卷
     * 
     * @param ids 需要删除的考试试卷ID
     * @return 结果
     */
    @Override
    public int deleteSafetyExaminationExaminationpaperByIds(Long[] ids)
    {
        return safetyExaminationExaminationpaperMapper.deleteSafetyExaminationExaminationpaperByIds(ids);
    }

    /**
     * 删除考试试卷信息
     * 
     * @param id 考试试卷ID
     * @return 结果
     */
    @Override
    public int deleteSafetyExaminationExaminationpaperById(Long id)
    {
        return safetyExaminationExaminationpaperMapper.deleteSafetyExaminationExaminationpaperById(id);
    }
}
